#ifndef AES_CODE_H
#define AES_CODE_H

class TAesCode
{
public:
    TAesCode(char* key);
    ~TAesCode();

    int  encrypt_cbc(char* data, int length,char* out);
    int  decrypt_cbc(char* data, int length);
    void remove_padding(char* data, int length);

    int decrypt_cbc_full(char* data, int length);

private:
    void*  m_decodeCtx;
    void*  m_encodeCtx;
};
#endif
